﻿using System;
using System.Collections.Generic;
using System.Text;
using Kugar.Core.BaseStruct;
using Kugar.UI.Web.AdminLTE.Models;

namespace Kugar.UI.Web.AdminLTE.Interfaces
{
    public interface IAdminLoginManager
    {
        ResultReturn<string> Login(string userName, string password);
    }

    public interface IAdminManager
    {
        VM_PagedList<Model_AdminInfo> GetAdminList(string keyword = "", int state = -1, int pageIndex = 1, int pageSize = 20);

        Model_AdminInfo GetAdminByID(string userID);
            
        ResultReturn<string> AddAdmin(string userName, string password,int state);

        ResultReturn UpdateAdmin(string userID, int state);

        ResultReturn DeleteAdminByID(string userID);

        ResultReturn ChangePassword(string userID,string oldPassword,string newPassword);

        ResultReturn ResetPassword(string userID);
    }
}
